<?php


namespace App\Models;


use Illuminate\Database\Eloquent\Model;

class VerifyCode extends Model
{
    protected $table = 'verify_code';

    public $timestamps = false;


    public static function getCode($mobile){
        $data = self::query()->where("mobile", $mobile)->first();
        return $data ? $data->code : '';
    }

}
